﻿<%@ Control Language="C#" EnableViewStatE="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<script type="text/javascript">
    function showspan(){
        document.getElementById('showsearch').style.display="block";
    }
    function shwotable(){
        document.getElementById('table1').style.display="none";
    }
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
        margin-top: 1px">
        <tr>
            <td valign="middle" height="30">
                <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black;text-indent:1em;" runat="server">
                    用户管理 </font>
            </td>
        </tr>
    </table>
    <table id="table1" class="window_tab_list" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="text-align:center;">
        <tr style="width:100%;">
            <td height="30" style="text-align: left">
                <img src="<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/arrowright.gif" align="absmiddle" /><a href="EditUser2.aspx">
                <asp:Label ID="showadduser" runat="server" Text="添加用户"  Visible="false"></asp:Label></a>&nbsp; 
                <span id="showsearch" style="display:none;">
                用户名/登录名：<asp:TextBox ID="userlname" runat="server"></asp:TextBox>
                <asp:Button ID="tosearch" runat="server" Text="查 询" />
                </span>
            </td>
        </tr>
    </table>
<table class="window_tab_list" cellpadding="0" cellspacing="0" border="0" width="100%" align="center"
        style="margin-top: 3px">
        <tr>
            <th style="width:80px;">
                登录名
            </th>
            <th>
                用户名
            </th>
            <th width="100px">
                最后登录时间
            </th>
            <th width="100px">
                最后登录IP
            </th>
            <th width="80px">
                是否有效
            </th>
            <th width="150px">
                操作
            </th>
        </tr>
        <CBW:MPRepeater ID="MPRepeaterList" runat="server">
            <EmptyDataTemplate>
                <tr>
                    <td colspan="6">
                        暂无相关数据！
                    </td>
                </tr>
            </EmptyDataTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <%#Eval("LOGINID")%>
                    </td>
                    <td align="center">
                        <%#Eval("NAME")%>
                    </td>
                    <td align="center">
                        <span title='<%#Eval("ADDTIME")%>'>
                            <%#(string.IsNullOrEmpty(Eval("ADDTIME").ToString())) ? null : (Convert.ToDateTime(Eval("ADDTIME")).ToString("yyyy-MM-dd"))%>
                        </span>
                    </td>
                    <td align="center">
                        <%#Eval("THISIP")%>
                    </td>
                    <td align="center">
                        <%#Eval("STATUS").ToString() == "1" ? "√" : "×"%>
                    </td>
                    <td align="center">
                        <a href="EditUser2.aspx?action=edit&id=<%#Eval("id") %>">编辑</a>&nbsp; <a href="EditUser2.aspx?action=del&id=<%#Eval("id") %>">
                            <asp:Label ID="showdel" runat="server" Text="删除"></asp:Label></a>
                    </td>
                </tr>
            </ItemTemplate>
        </CBW:MPRepeater>
    </table>